#define _CRT_SECURE_NO_WARNINGS 1
//plus or minus
#include <stdio.h>
int main()
{
	int t = 0;
	scanf("%d", &t);
	while (t--)
	{
		int a, b, c;
		scanf("%d%d%d", &a, &b, &c);
		if (a + b == c)
		{
			printf("+\n");
		}
		if (a - b == c)
		{
			printf("-\n");
		}
	}
	return 0;
}